package com.example.gulimallproduct.feigen;

import com.example.common.to.SkuReductionTO;
import com.example.common.to.SpuBoundTO;
import com.example.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")
public interface CouponFeignClient {
    // 保存sku积分信息
    @PostMapping("/coupon/spubounds/save")
     R saveSpuBound(@RequestBody SpuBoundTO spuBoundTO);

    // 保存sku满减信息
    @PostMapping("/coupon/skufullreduction/saveInfo")
     R saveSkuFullReduction(@RequestBody SkuReductionTO skuFullReduction);
}
